package com.framerock.baselib;


import java.util.ArrayList;
import java.util.Map;

public class CLog{

	public static int showci 	= 0;


	public static void debug(String msg)
	{
		if(AA.DEBUG)print(msg);
	}
        
	public static void print(String msg)
	{
		showci++;
		String cont = ""+showci+".["+AA.APPTYPE+"]"+ CDate.now()+": "+msg;
		System.out.println(cont);
	}

	public static void debug(ArrayList<Map<String, String>> rows)
	{
		debug(Json.getListString(rows));
	}

	public static void debug(Map<String, String> da)
	{
		debug(Json.getJsonString(da));
	}

	public static void error(String msg)
	{
		showci++;
		String cont = ""+showci+".["+AA.APPTYPE+"]"+ CDate.now()+": "+msg;
		System.err.println(cont);
	}
}